package com.itheima.mapper.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domian.Employees;
import com.itheima.domian.vo.EmployeeVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author 12441
 */
@Mapper
public interface EmployeeMapper extends BaseMapper<Employees> {

    @Select("select * from employees where username")
    Employees getEmpByCount(String account);

    @Insert("INSERT INTO employees ( id, name, username, password, " +
            "phone, sex, id_number, create_time, " +
            "update_time, create_user, update_user)values (null,#{name},#{username},#{password}," +
            "#{phone},#{sex},#{idNumber},#{createTime},#{updateTime}," +
            "#{createUser},#{updateUser})")
    Integer addUser(Employees employees);
}
